﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using HZH_Controls;
using HZH_Controls.Controls;

namespace Lamex.mMES.UI
{
    public partial class frmMES_Lab_TimeLine : frmBaseChild
    {
        public frmMES_Lab_TimeLine()
        {
            InitializeComponent();
        }

        private void frmMES_TestManage_Load(object sender, EventArgs e)
        {
            //ucTimeLine1 ucTl = new HZH_Controls.Controls.UCTimeLine;
            
            //实例化类数组
            TimeLineItem[] arrayTl = new TimeLineItem[15];        
            for (int i = 0; i < arrayTl.Length; i++)
            {
               //实例化数组里每个元素，方可给元素类的成员赋值
               arrayTl[i] = new TimeLineItem();
               arrayTl[i].Title = "Title" + "_" + i.ToString();
               arrayTl[i].Details = "Details" + "_" + i.ToString();   
            }

            ucTimeLine1.Items = arrayTl;

            string[] arrayStr = new string[15];
            for (int i = 0; i < arrayStr.Length; i++)
            {
                arrayStr[i] = "P_" + i.ToString();
            }

            ucStep1.Steps = arrayStr;
        }

        private void ucTimeLine1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("AAA");
            //MessageBox.Show("AAA");
        }

        private void ucStep1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("AAA");
        }
    }
}